package CollectionsDemo;

import java.io.*;


public class InputDemo 
	{

	public static void main(String[] args) 
	{
	String name = null; 
	InputStreamReader isr = new InputStreamReader(System.in);
	BufferedReader bfr = new BufferedReader(isr);
	
	System.out.println("Taking input from keyboard");
	
	try
		{
		System.out.println("Enter your name : ");
		name = bfr.readLine();
		}
	catch(IOException ioe)
		{
		System.out.println("Couldnot Read from file");
		}
	
	System.out.println("Your name is " + name);
	}

}
